package com.yxc.plan.wolf.domain;


import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Description :
 * @Author : abc@vanke.com
 * @Date : 2018/12/11 4:28 PM
 */
@Entity
@Table(name = "t_comments")
public class Comment extends BaseEntity {

    private Long tweetId;
    private Long userId;
    private String detail;

    @Transient
    private User user;

    public Long getTweetId() {
        return tweetId;
    }

    public void setTweetId(Long tweetId) {
        this.tweetId = tweetId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
